package com.ruoyi.system.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 sys_payment
 *
 * @author zyy
 * @date 2024-03-21
 */
public class SysPayment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 支付ID */
    private String paymentId;

    /** 关联订单ID */
    @Excel(name = "关联订单ID")
    private String orderId;

    /** 关联用户ID */
    @Excel(name = "关联用户ID")
    private Long userId;

    /** 关联用户 */
    @Excel(name = "支付金额")
    private Long amount;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String paymentMethod;

    /** 支付状态：0表示未支付，1表示已支付 */
    @Excel(name = "支付状态：0表示未支付，1表示已支付")
    private Long paymentStatus;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paymentTime;

    public void setPaymentId(String paymentId)
    {
        this.paymentId = paymentId;
    }

    public String getPaymentId()
    {
        return paymentId;
    }
    public void setOrderId(String orderId)
    {
        this.orderId = orderId;
    }

    public String getOrderId()
    {
        return orderId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setAmount(Long amount)
    {
        this.amount = amount;
    }

    public Long getAmount()
    {
        return amount;
    }
    public void setPaymentMethod(String paymentMethod)
    {
        this.paymentMethod = paymentMethod;
    }

    public String getPaymentMethod()
    {
        return paymentMethod;
    }
    public void setPaymentStatus(Long paymentStatus)
    {
        this.paymentStatus = paymentStatus;
    }

    public Long getPaymentStatus()
    {
        return paymentStatus;
    }
    public void setPaymentTime(Date paymentTime)
    {
        this.paymentTime = paymentTime;
    }

    public Date getPaymentTime()
    {
        return paymentTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("paymentId", getPaymentId())
                .append("orderId", getOrderId())
                .append("userId", getUserId())
                .append("amount", getAmount())
                .append("paymentMethod", getPaymentMethod())
                .append("paymentStatus", getPaymentStatus())
                .append("paymentTime", getPaymentTime())
                .toString();
    }
}
